home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Esportes / Board.swf / scripts / DefineSprite_144 / frame_10 / DoAction.as
Text File  |  2006-06-13  |  1KB  |  47 lines

  1. skiY = _Y + skiSpeed;
  2. skiX = _X + skiSpeed * skiDirection;
  3. if(skiDirection == "0")
  4. {
  5.    rampX = _X - getProperty("../ramp", _X);
  6.    rampY = _Y - getProperty("../ramp", _Y);
  7.    bigrampX = _X - getProperty("../bigramp", _X);
  8.    bigrampY = _Y - getProperty("../bigramp", _Y);
  9.    if(skijump == "0" and (- "80" < bigrampX and bigrampX < - "20" and - "20" < bigrampY and bigrampY < "50" or - "60" < rampX and rampX < - "10" and - "20" < rampY and rampY < "50"))
  10.    {
  11.       skijump = "1";
  12.       tellTarget("skieranim")
  13.       {
  14.          gotoAndPlay(7);
  15.       }
  16.    }
  17. }
  18. crashX = _X - getProperty("../trail1", _X);
  19. crashY = _Y - getProperty("../trail1", _Y);
  20. if(crashX < - "30" and - "70" < crashX and crashY < "10" and - "30" < crashY and eval("../trail1:jumpscale") < "120" and "150" < eval("../trail1:restart"))
  21. {
  22.    tellTarget("../trail1/boardoanim")
  23.    {
  24.       gotoAndStop(11);
  25.    }
  26.    tellTarget("../trail1")
  27.    {
  28.       gotoAndPlay(25);
  29.    }
  30. }
  31. if(skiY < "500")
  32. {
  33.    _Y = skiY;
  34.    _X = skiX;
  35.    gotoAndPlay(9);
  36. }
  37. else
  38. {
  39.    set("on","0");
  40.    _Y = - "10";
  41.    tellTarget("skieranim")
  42.    {
  43.       gotoAndStop(1);
  44.    }
  45.    gotoAndStop(1);
  46. }
  47.